1. /* sdcrln10.cpp by K.Tsuru */
  2. // function ID 3551 DARDIX constant
  3. /*********************
  4. SDouble class
  5. 1/log(10)
  6. **********************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. static SDouble* recln10 = NULL;
  11. static uint recln10Size = 0;
  12. void recLog10Free(){ //free the memory of recln10
  13. if(recln10Size == 0) return;
  14. delete recln10; recln10 = NULL; recln10Size = 0;
  15. }
  16. SDouble RecLog10(){
  17. uint ms = SNManager::SNMaxSize(SNManager::REAL);
  18. if( recln10Size < ms ){
  19. delete recln10;
  20. recln10 = new SDouble;
  21. SDouble x;
  22. x = Log10();
  23. *recln10 = DReciprocal(x);
  24. recln10Size = ms;
  25. }
  26. return *recln10;
  27. }

sdcrln10.cpp : last modifiled at 2017/06/23 10:17:11(648 bytes)
created at 2017/10/07 10:21:15
The creation time of this html file is 2017/10/07 10:30:03 (Sat Oct 07 10:30:03 2017).